<template>
	<view>
		<view class="plr-16 list mt-12">
			<view class="plr-8 ptb-16 flex font-color-textPrimary flex-js-sb item" v-for="(item,index) in list"
				:key="index">
				<text>{{item.time && handleLang(item.time)}}</text>
				<view class="font-color-textPrimary font-size-14">
					#{{item.collection_code}}
					<text class="font-color-999 font-size-12">/{{item.total_num}}</text>
				</view>
				<view class="">
					￥{{item.price}}
				</view>

			</view>

		</view>
		<w-loading class="mt-16" :type="loadingType" empty-type="search"></w-loading>
	</view>
</template>

<script>
	export default {
		props: {
			list: {
				type: Array,
				default: () => ([])
			},
			loadingType: {
				type: String,
				default: 'none'
			}
		}
	}
</script>

<style lang="scss">
	.list {
		.item {
			border-bottom: 1px solid rgba(0, 0, 0, 0.05);
		}
	}

	.type-item.active {
		@extend .font-color-textPrimary;
		position: relative;

		.title {
			@extend .font-w-600;
			position: relative;
			z-index: 2;
		}

		&::after {
			content: '';
			position: absolute;
			width: 130rpx;
			height: 12rpx;
			background: url($IMG_URL+'/static/bg/tab-line.png');
			background-size: cover;
			top: 26rpx;
			left: 0;
			z-index: 1;
		}

	}
</style>